package com.xiaoli.goodsserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoli.goodsserver.entity.Goods;
import org.apache.ibatis.annotations.Update;

public interface GoodsMapper extends BaseMapper<Goods> {

    @Update("update goods set stock = stock+#{changeStock} where id = #{id}")
    void updateStock(Long id, Integer changeStock);
}
